.version-switcher {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.version-switcher label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5c5962;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.version-selector {
  position: relative;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 4px 6px -1px rgba(114, 83, 237, 0.1), 0 2px 4px -1px rgba(114, 83, 237, 0.06);
}

.version-selector select {
  appearance: none;
  padding: 0.5rem 2.75rem 0.5rem 1rem;
  min-width: 140px;
  border: 2px solid #e1e4e8;
  border-radius: 4px;
  background: linear-gradient(135deg, #667eeaA0 60%, #764ba2A0 80%);
  background-color: #ffffff;
  color: #24292e;
  font-size: 14px;
  font-weight: 500;
  color: white;
  border: none;
  font-weight: 600;
}

.version-selector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #5c5962;
  pointer-events: none;
  transition: border-color 0.2s ease;
  border-top-color: white;
}

.version-selector select:hover {
  transform: translateY(-1px);
}

.version-selector select:focus {
  outline: none;
  border-color: #7253ed;
  background-color: #ffffff;
}


/* Dark theme support */
body.dark-theme .version-switcher label {
  color: #e6e1e8;
  opacity: 0.7;
}

body.dark-theme .version-selector select {
  background-color: #2d2d30;
  border-color: #444449;
  color: #e6e1e8;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

body.dark-theme .version-selector::after {
  border-top-color: #959da5;
}

body.dark-theme .version-selector select:hover {
  border-color: #7253ed;
  background-color: #3a3a3f;
}

body.dark-theme .version-selector:hover::after {
  border-top-color: #7253ed;
}

.version-dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  color: #24292e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
}


.version-dropdown-item:select {
  color: white;
  font-weight: 500;
}

.version-dropdown-item.active:hover {
  color: white;
}

.version-dropdown-item.active .version-badge {
  color: white;
}

body.dark-theme .version-dropdown-item {
  color: #e6e1e8;
}

body.dark-theme .version-dropdown-item:hover {
  background: #3a3a3f;
  color: #7253ed;
}
